package exam7;

/**
 * @author HB
 * @version 1.0
 * @description
 * @date 2021/6/25
 */
public class Light{
    private String position;

    public Light(String position){
        this.position=position;
    }

    public void on(){
        System.out.println(this.position + "灯打开！");
    }

    public void off(){
        System.out.println(this.position + "灯关闭！");
    }
}
